﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using _1Dot9MasterBiz;
using System.Collections;

public partial class BoardList : System.Web.UI.Page
{
    private DataSet ds;

    protected void Page_Load(object sender, EventArgs e)
    {
        ds = new DataSet();
        AAA();
    }

    protected void AAA()
    {

        try
        {
            using (BoardBiz boardBiz = new BoardBiz())
            {
                Hashtable htParams = new Hashtable();
                htParams.Add("@P_SERIAL_NO", "");

                ds = boardBiz.GetBoardList(htParams);

                this.t0.InnerHtml = ds.Tables[0].Rows[0]["title"].ToString();
                this.m0.InnerHtml = ds.Tables[0].Rows[0]["message"].ToString();

                this.t1.InnerHtml = ds.Tables[0].Rows[1]["title"].ToString();
                this.m1.InnerHtml = ds.Tables[0].Rows[1]["message"].ToString();

                this.t2.InnerHtml = ds.Tables[0].Rows[2]["title"].ToString();
                this.m2.InnerHtml = ds.Tables[0].Rows[2]["message"].ToString();

                //Response.Write("<script> alert('" + ds.Tables[0].Rows.Count + "'); </script>");
            }
        }
        catch (Exception ex)
        {
            Response.Write("<script> alert('" + ex.Message.ToString() + "'); </script>");
        }
    }
}